﻿using Avalonia.Data.Converters;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 畜牧业审核程序国产.Models.RagModel.SenderConverter
{
    internal class DocReferencesToVisibleConverter : IValueConverter
    {
        public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
        {
            var docReferences = value as string;
            if (docReferences==null ||docReferences.Contains("------")==false)//,没有引用文档,返回false ,即不可见,或者这里可以用equals("无")来判断
            {
                return false;
            }
            else
            {
                return true;
            }

        }

        public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
